//TODO object类型(非原始的基本数据类型)
    //定义一个函数,参数是object类型,返回值也是object类型
function getObj(obj:object):object{
    console.log(obj)
    return {
        name:'sss',
        age:27
    }
}

console.log(getObj({name:'qqq',age:'男'}))
/*
console.log(getObj(123))=>报错
*/
console.log(getObj(new String('123')))
console.log(getObj(String))